<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateImsEweiYuyueTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('ims_ewei_yuyue', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->integer('active_id')->default(0)->comment('活动id');
            $table->string('mobile',50)->comment('手机号');
            $table->string('openid',50)->nullable()->comment('openid');
            $table->smallInteger('status')->default(0)->comment('状态');
            $table->integer('send_time')->default(0)->comment('发送时间');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('ims_ewei_yuyue');
    }
}
